#ifndef BLANK_PARSER_H
#define BLANK_PARSER_H

#include "parse_exception.h"

#include "model/dom.h"

#include "blank_parser/parser.h"
#include "parser.h"

#include <string>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include <boost/thread/mutex.hpp>

using namespace std;

namespace network {
	class blank_parser : public network::parser {
	public:
		blank_parser();
		virtual ~blank_parser();
		virtual boost::shared_ptr<model::dom> parse(
			const string &msg);
		void add_dom(boost::shared_ptr<model::dom> d);
	private:
		parser_t *_pars;
		boost::shared_ptr<model::dom> _dom;
		boost::mutex _mutex;
	};
}

#endif
